const serverError = {
  code: 10000,
  message: '服务器内部错误'
}

const usernameOrPasswordIsNull = {
  code: 10001,
  message: '用户名或密码为空'
}

const usernameAlreayExisted = {
  code: 10002,
  message: '用户名已存在'
}

const usernameNoExisted = {
  code: 10003,
  message: '用户名不存在'
}

const invalidPassword = {
  code: 10004,
  message: '用户名与密码不匹配'
}

const noAccess = {
  code: 10005,
  message: '您没有权限进行此操作'
}

const repeatedQuestion = {
  code: 10006,
  message: '该问题已经有记录'
}

const tokenExpired = {
  code: 30000,
  message: 'token已过期'
}

const invalidToken = {
  code: 30001,
  message: '无效的token'
}

module.exports = {
  serverError,
  usernameOrPasswordIsNull,
  usernameAlreayExisted,
  usernameNoExisted,
  invalidPassword,
  noAccess,
  repeatedQuestion,
  tokenExpired,
  invalidToken
}
